package rentadomus

class Local{

    Place idPlace
    String localType
    int baths
    int phoneLines
    
    static constraints = {
        localType inList:["Store mall", "Other"]
        baths min:0, max: 500
        phoneLines min:0
    }
    static mapping ={
        version false
        idPlace column: 'id_place'
        phoneLines column:'phone_lines'
        localType column:'local_type'
    }
    
    public String toString(){
        "${idPlace.toString()}"
    }
}
